package com.sand.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Slf4j
@Aspect
@Component
public class UserAspect {

    @Pointcut("@annotation(AddAcpect)")
    public void po(){}


    @After(value = "po()")
    public void addUser(JoinPoint joinPoint){
        log.info(joinPoint + "aaaaa");
        System.out.println();

    }


}
